<template>
  <div class="goods">
    <PageTable :pageTableConfig="pageTableConfig" pageName="goods">
      <template #image="scope">
        <el-image
          style="width: 80px; height: 100px"
          :src="scope.row.imgUrl"
          :preview-src-list="[scope.row.imgUrl]"
        >
        </el-image>
      </template>
      <template #oldPrice="scope">{{ '¥' + scope.row.oldPrice }}</template>
    </PageTable>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import PageTable from '@/components/PageTable/PageTable.vue'

import { pageTableConfig } from './pageTableConfig'

export default defineComponent({
  name: 'goods',
  components: {
    PageTable
  },
  setup() {
    return {
      pageTableConfig
    }
  }
})
</script>

<style scoped></style>
